package com.zz.parkingsystem.entity;

import java.io.Serializable;
import lombok.Data;

/**
 * 平台信息表
 * @TableName t_platform_information
 */
@Data
public class PlatformInformation implements Serializable {
    /**
     * 平台信息编号
     */
    private Integer infId;

    /**
     * 品台名称
     */
    private String infName;

    /**
     * 品台logo
     */
    private String infLogo;

    /**
     * 客服热线
     */
    private String infTel;

    /**
     * 客服邮箱
     */
    private String infEmail;

    /**
     * 版权
     */
    private String infCopyright;

    /**
     * 用户协议
     */
    private String infAgreement;

    /**
     * 关于我们
     */
    private String infAboutUs;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PlatformInformation other = (PlatformInformation) that;
        return (this.getInfId() == null ? other.getInfId() == null : this.getInfId().equals(other.getInfId()))
            && (this.getInfName() == null ? other.getInfName() == null : this.getInfName().equals(other.getInfName()))
            && (this.getInfLogo() == null ? other.getInfLogo() == null : this.getInfLogo().equals(other.getInfLogo()))
            && (this.getInfTel() == null ? other.getInfTel() == null : this.getInfTel().equals(other.getInfTel()))
            && (this.getInfEmail() == null ? other.getInfEmail() == null : this.getInfEmail().equals(other.getInfEmail()))
            && (this.getInfCopyright() == null ? other.getInfCopyright() == null : this.getInfCopyright().equals(other.getInfCopyright()))
            && (this.getInfAgreement() == null ? other.getInfAgreement() == null : this.getInfAgreement().equals(other.getInfAgreement()))
            && (this.getInfAboutUs() == null ? other.getInfAboutUs() == null : this.getInfAboutUs().equals(other.getInfAboutUs()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getInfId() == null) ? 0 : getInfId().hashCode());
        result = prime * result + ((getInfName() == null) ? 0 : getInfName().hashCode());
        result = prime * result + ((getInfLogo() == null) ? 0 : getInfLogo().hashCode());
        result = prime * result + ((getInfTel() == null) ? 0 : getInfTel().hashCode());
        result = prime * result + ((getInfEmail() == null) ? 0 : getInfEmail().hashCode());
        result = prime * result + ((getInfCopyright() == null) ? 0 : getInfCopyright().hashCode());
        result = prime * result + ((getInfAgreement() == null) ? 0 : getInfAgreement().hashCode());
        result = prime * result + ((getInfAboutUs() == null) ? 0 : getInfAboutUs().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", infId=").append(infId);
        sb.append(", infName=").append(infName);
        sb.append(", infLogo=").append(infLogo);
        sb.append(", infTel=").append(infTel);
        sb.append(", infEmail=").append(infEmail);
        sb.append(", infCopyright=").append(infCopyright);
        sb.append(", infAgreement=").append(infAgreement);
        sb.append(", infAboutUs=").append(infAboutUs);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}